/*********************************************************************************/
/*                                                                               */
/*      ABZ Driver                                                               */
/*                                                                               */
/*      Last updated by:   CBS                                                   */
/*      Last update date:  13/02/05                                              */
/*      Revision:          0                                                     */
/*      Copyright:         DENSO                                                 */
/*                                                                               */
/*********************************************************************************/

/*********************************************************************************/
/*  include files                                                                */
/*********************************************************************************/
#include "Abz.h"

/*********************************************************************************/
/*  prototypes                                                                   */
/*********************************************************************************/

/*********************************************************************************/
/*  defines / data types / structs / unions / macros                             */
/*********************************************************************************/

/*********************************************************************************/
/*  constants                                                                    */
/*********************************************************************************/
const Abz_ConfigType AbzConfig =
{
    {
        {
            ABZ_CHANNEL_A,
            ABZ_FALLING_EDGE,
            ABZ_MODE_EDGE_COUNTER,
            {
                ABZ_PERIOD_TIME
            },
            {
                (U4)0, 
                (U4)0, 
                (U4)0x0000,
                (U4)0x0,      /* FREN:Freeze Enable Bit 0:Normal 1:Freeze        */
                (U4)0x0,      /* ODIS:Output Disable Bit 0:Normal 1:Output EDPOL */
                (U4)0x3,      /* ODISSL:Output Disable Select Bit                */
                (U4)ABZ_INTERNAL_PRESCALER, /* UCPRE:Prescaler Bits 00:1 11:4    */
                (U4)0x1,      /* UCPREN:Prescaler Bit 0:Disabled 1:Enabled       */
                (U4)0x0,      /* DMA:Direct Memory Access Bit 0:Interrupt 1:DMA  */
                (U4)0x0,      /* Reserverd                                       */
                (U4)0x1,      /* IF:Input Filter Bits                            */
                (U4)0x0,      /* FCK:Filter Clock Select Bit 0:Prescaled 1:Main  */
                (U4)0x0,      /* FEN:FLAG Enable Bit  0:Disable 1:Enable         */
                (U4)0x0,      /* Reserved                                        */
                (U4)0x1,      /* FORCMA:Force Match A Bit 0:No effect 1:Match    */
                (U4)0x1,      /* FORCMB:Force Match B Bit 0;No effect 1:Match    */
                (U4)0x0,      /* Reserved                                        */
                (U4)0x3,      /* BSL:Bus Select Bits 11:Internal counter         */
                (U4)0x1,      /* EDSEL:Edge Selection Bit Not Effect             */
                (U4)0x1,      /* EDPOL;Edge Polarity Bit 0:LOW 1:HIGH            */
                (U4)0x04      /* MODE 0x04:IPWM                                  */
            }
        },
        {
            ABZ_CHANNEL_B,
            ABZ_FALLING_EDGE,
            ABZ_MODE_EDGE_COUNTER,
            {
                ABZ_PERIOD_TIME
            },
            {
                (U4)0, 
                (U4)0, 
                (U4)0x0000,
                (U4)0x0,      /* FREN:Freeze Enable Bit 0:Normal 1:Freeze        */
                (U4)0x0,      /* ODIS:Output Disable Bit 0:Normal 1:Output EDPOL */
                (U4)0x3,      /* ODISSL:Output Disable Select Bit                */
                (U4)ABZ_INTERNAL_PRESCALER, /* UCPRE:Prescaler Bits 00:1 11:4    */
                (U4)0x1,      /* UCPREN:Prescaler Bit 0:Disabled 1:Enabled       */
                (U4)0x0,      /* DMA:Direct Memory Access Bit 0:Interrupt 1:DMA  */
                (U4)0x0,      /* Reserverd                                       */
                (U4)0x1,      /* IF:Input Filter Bits                            */
                (U4)0x0,      /* FCK:Filter Clock Select Bit 0:Prescaled 1:Main  */
                (U4)0x0,      /* FEN:FLAG Enable Bit  0:Disable 1:Enable         */
                (U4)0x0,      /* Reserved                                        */
                (U4)0x1,      /* FORCMA:Force Match A Bit 0:No effect 1:Match    */
                (U4)0x1,      /* FORCMB:Force Match B Bit 0;No effect 1:Match    */
                (U4)0x0,      /* Reserved                                        */
                (U4)0x3,      /* BSL:Bus Select Bits 11:Internal counter         */
                (U4)0x1,      /* EDSEL:Edge Selection Bit Not Effect             */
                (U4)0x1,      /* EDPOL;Edge Polarity Bit 0:LOW 1:HIGH            */
                (U4)0x04      /* MODE 0x04:IPWM                                  */
            }
        },
        {
            ABZ_CHANNEL_Z,
            ABZ_FALLING_EDGE,
            ABZ_MODE_EDGE_COUNTER,
            {
                ABZ_PERIOD_TIME
            },
            {
                (U4)0, 
                (U4)0, 
                (U4)0x0000,
                (U4)0x0,      /* FREN:Freeze Enable Bit 0:Normal 1:Freeze        */
                (U4)0x0,      /* ODIS:Output Disable Bit 0:Normal 1:Output EDPOL */
                (U4)0x3,      /* ODISSL:Output Disable Select Bit                */
                (U4)ABZ_INTERNAL_PRESCALER, /* UCPRE:Prescaler Bits 00:1 11:4    */
                (U4)0x1,      /* UCPREN:Prescaler Bit 0:Disabled 1:Enabled       */
                (U4)0x0,      /* DMA:Direct Memory Access Bit 0:Interrupt 1:DMA  */
                (U4)0x0,      /* Reserverd                                       */
                (U4)0x1,      /* IF:Input Filter Bits                            */
                (U4)0x0,      /* FCK:Filter Clock Select Bit 0:Prescaled 1:Main  */
                (U4)0x0,      /* FEN:FLAG Enable Bit  0:Disable 1:Enable         */
                (U4)0x0,      /* Reserved                                        */
                (U4)0x1,      /* FORCMA:Force Match A Bit 0:No effect 1:Match    */
                (U4)0x1,      /* FORCMB:Force Match B Bit 0;No effect 1:Match    */
                (U4)0x0,      /* Reserved                                        */
                (U4)0x3,      /* BSL:Bus Select Bits 11:Internal counter         */
                (U4)0x1,      /* EDSEL:Edge Selection Bit Not Effect             */
                (U4)0x1,      /* EDPOL;Edge Polarity Bit 0:LOW 1:HIGH            */
                (U4)0x04      /* MODE 0x04:IPWM                                  */
            }
        },
    }
};

/*********************************************************************************/
/*  variables                                                                    */
/*********************************************************************************/

/*********************************************************************************/
/*  API Functions                                                                */
/*********************************************************************************/

/*********************************************************************************/
/*  Local Functions                                                              */
/*********************************************************************************/

